package com.vichat.room.entity;


import javax.persistence.*;
import java.util.List;

/***************
 *author: autogen
 *version: 2018-12-18 16:56:48.226
 */
@Entity
@Table(name = "room_member",catalog = "roomdb")
public class RoomMember implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "room_member";

    /** */
	public static final String ALIAS_RID = "rid";
    /** */
	public static final String ALIAS_UID = "uid";
    /** */
	public static final String ALIAS_USER_NAME = "user_name";
    /** */
	public static final String ALIAS_ADMIN_GRADE = "admin_grade";
    /** */
	public static final String ALIAS_PRIORITY = "priority";
    /** */
	public static final String ALIAS_TIMELEN = "timelen";
    /** */
	public static final String ALIAS_VIDEOLEN = "videolen";
    /** */
	public static final String ALIAS_VERSION = "version";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /** */
	public static final String ALIAS_STATE = "state";



	@Column(name = "rid", unique = true, nullable = false)
	public java.lang.Long rid = 0l;

	@Id
	@Column(name = "uid", unique = true, nullable = false)
	public java.lang.Long uid = 0l;
  
 	@Column(name = "user_name")
    public java.lang.String userName;
  
 	@Column(name = "admin_grade")
    public java.lang.Long adminGrade = 0l;
  
 	@Column(name = "priority")
    public java.lang.Long priority = 0l;
  
 	@Column(name = "timelen")
    public java.lang.Long timelen = 0l;
  
 	@Column(name = "videolen")
    public java.lang.Long videolen = 0l;
  
 	@Column(name = "version")
    public java.lang.Long version = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  





	public java.lang.Long getRid() {
		return this.rid;
	}
	
	public void setRid(java.lang.Long value) {
		this.rid = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.String getUserName() {
		return this.userName;
	}
	
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}

	public java.lang.Long getAdminGrade() {
		return this.adminGrade;
	}
	
	public void setAdminGrade(java.lang.Long value) {
		this.adminGrade = value;
	}

	public java.lang.Long getPriority() {
		return this.priority;
	}
	
	public void setPriority(java.lang.Long value) {
		this.priority = value;
	}

	public java.lang.Long getTimelen() {
		return this.timelen;
	}
	
	public void setTimelen(java.lang.Long value) {
		this.timelen = value;
	}

	public java.lang.Long getVideolen() {
		return this.videolen;
	}
	
	public void setVideolen(java.lang.Long value) {
		this.videolen = value;
	}

	public java.lang.Long getVersion() {
		return this.version;
	}
	
	public void setVersion(java.lang.Long value) {
		this.version = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}


	
	public RoomMember() {
	}
	
	public RoomMember(boolean qryflag) {
	    if(qryflag){
	    		this.rid = null;
				this.uid = null;
				this.userName = null;
				this.adminGrade = null;
				this.priority = null;
				this.timelen = null;
				this.videolen = null;
				this.version = null;
				this.updateTime = null;
				this.state = null;
			    }
	}


	public RoomMember(
	    java.lang.Long inRid,
	    java.lang.Long inUid,
	    java.lang.String inUserName,
	    java.lang.Long inAdminGrade,
	    java.lang.Long inPriority,
	    java.lang.Long inTimelen,
	    java.lang.Long inVideolen,
	    java.lang.Long inVersion,
	    java.util.Date inUpdateTime,
		java.lang.Long inState
	 ) {
		super();
				this.rid = inRid;
				this.uid = inUid;
				this.userName = inUserName;
				this.adminGrade = inAdminGrade;
				this.priority = inPriority;
				this.timelen = inTimelen;
				this.videolen = inVideolen;
				this.version = inVersion;
				this.updateTime = inUpdateTime;
				this.state = inState;
			}


	@Transient
	private String adminGradeName;
	@Transient
	private List<Long> uids;
	@Transient
	private String phone;
	@Transient
	private long capacity;

	public String getAdminGradeName() {
		return adminGradeName;
	}

	public void setAdminGradeName(String adminGradeName) {
		this.adminGradeName = adminGradeName;
	}

	public List<Long> getUids() {
		return uids;
	}

	public void setUids(List<Long> uids) {
		this.uids = uids;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public long getCapacity() {
		return capacity;
	}

	public void setCapacity(long capacity) {
		this.capacity = capacity;
	}


}

